package com.example.novel.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @TableName evaluate_yj
 */
@TableName(value ="evaluate")
@Data
public class Evaluate implements Serializable {
    private Integer evaluateId;

    private Integer userId;

    private Integer bookId;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String userImage;

    private String comment;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;

    private BigDecimal satisfy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedAt;

    private static final long serialVersionUID = 1L;
}